// 统一管理用户相关的接口
import { defaultRequest } from '@/utils/request'
// 同意管理用的的接口
enum API {
     AddUser = '/api/UserInfo/AddUser',
     UpdateUser = '/api/UserInfo/UpdateUser',
     GetUsers = '/api/UserInfo/GetUsers',
     DeleteUser = '/api/UserInfo/DeleteUser',
}
// 对外暴漏请求函数
export const AddUser = (data: any) => defaultRequest.post(API.AddUser, data)
export const UpdateUser = (data: any) => defaultRequest.post(API.UpdateUser, data)
export const GetUsers = (params: any) => defaultRequest.get(API.GetUsers, { params })
export const DeleteUser = (params: any) => defaultRequest.get(API.DeleteUser, { params })
